<template>
	<view class="bg-white">
		<MyTopNav></MyTopNav>
		<view class="text-xl padding text-center">
			<text class="text-black text-bold">请选择反馈内容</text>
		</view>
		<view class="cu-list menu padding-sm" >
			<view class="cu-item arrow padding-sm" @click="gotoContent(item)" v-for="(item, index) in titles" :key="index">
				<view class="content " 	>
					{{item}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				feedbackType: 0, // 反馈类型
				titles: [], // 反馈标题
			}
		},
		onLoad(options) {
			this.feedbackType = options.feedbackType;
		},
		onShow() {
			let feedbackType = this.feedbackType;
			let titles = [];
			if (feedbackType == 0) {
				titles = ['无法打开小程序', '小程序闪退', '卡顿', '黑屏白屏', '死机', '界面错位', '界面加载慢', '其他异常'];
			}
			if (feedbackType == 2) {
				titles = ['欺诈', '色情低俗', '诱导', '插播不实信息', '违法犯罪', '骚扰', '侵权(诽谤抄袭)', '混淆他人投诉'
				, '恶意营销', '与服务类目不符', '隐私信息收集', '其他'];
			}
			this.titles = titles;
		},
		methods: {
			// 跳转内容
			gotoContent(feedbackTitle) {
				uni.$u.route({
					url: 'pages/mine/feedback/feedbackContent',
					params: {
						feedbackType: this.feedbackType,
						feedbackTitle: feedbackTitle
					}
				})
			}
		}
	}
</script>

<style>

</style>
